package com.example.client_anna.util.entity;

import com.kunminx.linkage.bean.BaseGroupedItem;

/**
 * @author cy
 * @email 272884043@qq.com
 * @date 2021/10/19
 */
public class HomeShopGroupItem extends BaseGroupedItem<HomeShopGroupItem.ItemInfo> {


    public HomeShopGroupItem(boolean isHeader, String header) {
        super(isHeader, header);
    }

    public HomeShopGroupItem(ItemInfo info) {
        super(info);
    }

    public static class ItemInfo extends BaseGroupedItem.ItemInfo {

        private String fid;
        private String image;
        private String comment;
        private String description;
        private Integer sales;
        private Float price;

        public ItemInfo(String title, String group, String comment) {
            super(title, group);
            this.comment = comment;
        }

        public ItemInfo(String title, String group, String comment, String image) {
            this(title, group, comment);
            this.image = image;
        }

        public ItemInfo(String title, String group, String comment, String imgUrl, String description) {
            this(title, group, comment, imgUrl);
            this.description = description;
        }

        public ItemInfo(String title, String group, String comment, String imgUrl, String details,Integer sales) {
            this(title, group, comment, imgUrl,details);
            this.sales = sales;
        }

        public ItemInfo(String title, String group, String comment, String imgUrl, String details,Integer sales,Float price) {
            this(title, group, comment, imgUrl,details,sales);
            this.price = price;
        }

        public ItemInfo(String title, String group, String comment, String imgUrl, String details,Integer sales,Float price,String fid) {
            this(title, group, comment, imgUrl,details,sales,price);
            this.fid = fid;
        }

        public String getFid() {
            return fid;
        }

        public void setFid(String fid) {
            this.fid = fid;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public Integer getSales() {
            return sales;
        }

        public void setSales(Integer sales) {
            this.sales = sales;
        }

        public Float getPrice() {
            return price;
        }

        public void setPrice(Float price) {
            this.price = price;
        }
    }
}
